import { configureStore } from '@reduxjs/toolkit';
import { createWrapper } from 'next-redux-wrapper';

import testReducer from './module/test';

const store = configureStore({
	reducer: {
		test: testReducer
	}
});

const wrapper = createWrapper(() => store);
export default wrapper;

export type StoreDispatch = typeof store.dispatch;
export type StoreState = ReturnType<typeof store.getState>;
